package com.ianmoone.JZOF;

import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import java.util.Scanner;

public class BCZTest1 {
	public static void main(String[] args) {
		Scanner in = new Scanner(System.in);
		String str = in.nextLine();
		String[] split = str.split("");
		List<String> list = new ArrayList<>();
		Boolean fuFlag = false;
		
		for (int i = 0; i < split.length; i++) {
			if (split[i].equals("-")) {
				fuFlag = true;
				continue;
			}
			list.add(split[i]);
		}
		Collections.reverse(list);
		if(fuFlag){
			System.out.print("-");
		}
		int i = 0;
		while (list.get(i).equals("0")) {
			i++;
		}
		for (int j = i; j < list.size(); j++) {
			System.out.print(list.get(j));
		}
	}
}
